import { createApp } from 'vue'
import App from './App.vue'
//引入elment-plus插件与样式
import ElmentPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' //中文国际化
//svg插件需要配置代码
import 'virtual:svg-icons-register'
//引入自定义插件对象：注册整个项目全局组件
//@ts-ignore
import gloablComponents from "@/utils/globalComponents.ts"
//引入模板全局样式
import './styles/reset.scss'
//引入仓库
import pinia from "./piniaStore/rootStore.ts";
//引入路由进行注册
import router from "./router/routerConfig.ts";

//创建app
const app = createApp(App);
app.use(ElmentPlus,{
    locale: zhCn
});
//安装自定义插件
app.use(gloablComponents);
app.use(pinia);//安装大仓库
app.use(router);//注册路由

app.mount('#app')
